package com.kevin.singleton;

/**
 * 饿汉式单例
 *
 * @author kevin
 * @date 2025/8/9
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton(){}

    public static HungrySingleton getInstance(){
        return instance;
    }

}
